c program to count the digits in an integer